Append items from iterrableΒΆ

A.extend(A)

Append items from inerrable to the end of the array.

from array import *

AI = array('i', [1, 3, 5, 7, 9])
print("Original array: " + str(AI))
# Original array: array('i', [1, 3, 5, 7, 9])

AI.extend(AI)

print("Extended array: " + str(AI))
# Extended array: array('i', [1, 3, 5, 7, 9, 1, 3, 5, 7, 9])

See also: https://www.w3resource.com/python-exercises/array/python-array-exercise-7.php